/*
 * 保险
 * <p>根据银保监会的文件要求，保险行业财产险公司的车险业务，用户在投保缴费（微信&amp;支付宝&amp;银行卡）之前，必须要完成支付人的实名验证，确保支付人与投保人一致才能缴费。目前实名认证存在四种模式，分别为：中保信模式、上海模式、深圳模式和江苏模式，其中中保信模式和上海模式要求支付机构与实名平台专线对接（已有专线），深圳和江苏是公网对接。因实名平台的接口仅支持有支付牌照的收单机构对接，所以部署一套单独的保险实名认证服务在易宝中台，支撑保险商户业务的正常进行。</p>
 *
 * OpenAPI spec version: 1.0
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.yeepay.yop.sdk.service.insurance.model;

import org.apache.commons.lang3.ObjectUtils;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.yeepay.yop.sdk.service.insurance.model.RealnameAuthTradingBackDataDTOParam;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.HashMap;
import java.util.Map;

/**
 * 方法签名第0个参数，请自行修改arg0等参数的名字
 */
public class RealnameAuthCommonInsurRequestDTOParam implements Serializable{

  private static final long serialVersionUID = 1L;

  /**
   * 
   */
  @JsonProperty("appkey")
  private String appkey = null;

  /**
   * 
   */
  @JsonProperty("requestNo")
  private String requestNo = null;

  /**
   * 
   */
  @JsonProperty("customerNo")
  private String customerNo = null;

  /**
   * 
   */
  @JsonProperty("requestType")
  private String requestType = null;

  /**
   * 
   */
  @JsonProperty("cardNo")
  private String cardNo = null;

  /**
   * 
   */
  @JsonProperty("payerIdCard")
  private String payerIdCard = null;

  /**
   * 
   */
  @JsonProperty("payerName")
  private String payerName = null;

  /**
   * 
   */
  @JsonProperty("paymentNo")
  private String paymentNo = null;

  /**
   * 
   */
  @JsonProperty("queryNo")
  private String queryNo = null;

  /**
   * 
   */
  @JsonProperty("taskNumbers")
  private String taskNumbers = null;

  /**
   * 
   */
  @JsonProperty("totalAmount")
  private String totalAmount = null;

  /**
   * 
   */
  @JsonProperty("tradeNo")
  private String tradeNo = null;

  /**
   * 
   */
  @JsonProperty("date")
  private String date = null;

  /**
   * 
   */
  @JsonProperty("validateSequenceNo")
  private String validateSequenceNo = null;

  /**
   * 
   */
  @JsonProperty("tradingBackDataDTOS")
  private List<RealnameAuthTradingBackDataDTOParam> tradingBackDataDTOS = null;

  public RealnameAuthCommonInsurRequestDTOParam appkey(String appkey) {
    this.appkey = appkey;
    return this;
  }

   /**
   * Get appkey
   * @return appkey
  **/

  public String getAppkey() {
    return appkey;
  }

  public void setAppkey(String appkey) {
    this.appkey = appkey;
  }

  public RealnameAuthCommonInsurRequestDTOParam requestNo(String requestNo) {
    this.requestNo = requestNo;
    return this;
  }

   /**
   * Get requestNo
   * @return requestNo
  **/

  public String getRequestNo() {
    return requestNo;
  }

  public void setRequestNo(String requestNo) {
    this.requestNo = requestNo;
  }

  public RealnameAuthCommonInsurRequestDTOParam customerNo(String customerNo) {
    this.customerNo = customerNo;
    return this;
  }

   /**
   * Get customerNo
   * @return customerNo
  **/

  public String getCustomerNo() {
    return customerNo;
  }

  public void setCustomerNo(String customerNo) {
    this.customerNo = customerNo;
  }

  public RealnameAuthCommonInsurRequestDTOParam requestType(String requestType) {
    this.requestType = requestType;
    return this;
  }

   /**
   * Get requestType
   * @return requestType
  **/

  public String getRequestType() {
    return requestType;
  }

  public void setRequestType(String requestType) {
    this.requestType = requestType;
  }

  public RealnameAuthCommonInsurRequestDTOParam cardNo(String cardNo) {
    this.cardNo = cardNo;
    return this;
  }

   /**
   * Get cardNo
   * @return cardNo
  **/

  public String getCardNo() {
    return cardNo;
  }

  public void setCardNo(String cardNo) {
    this.cardNo = cardNo;
  }

  public RealnameAuthCommonInsurRequestDTOParam payerIdCard(String payerIdCard) {
    this.payerIdCard = payerIdCard;
    return this;
  }

   /**
   * Get payerIdCard
   * @return payerIdCard
  **/

  public String getPayerIdCard() {
    return payerIdCard;
  }

  public void setPayerIdCard(String payerIdCard) {
    this.payerIdCard = payerIdCard;
  }

  public RealnameAuthCommonInsurRequestDTOParam payerName(String payerName) {
    this.payerName = payerName;
    return this;
  }

   /**
   * Get payerName
   * @return payerName
  **/

  public String getPayerName() {
    return payerName;
  }

  public void setPayerName(String payerName) {
    this.payerName = payerName;
  }

  public RealnameAuthCommonInsurRequestDTOParam paymentNo(String paymentNo) {
    this.paymentNo = paymentNo;
    return this;
  }

   /**
   * Get paymentNo
   * @return paymentNo
  **/

  public String getPaymentNo() {
    return paymentNo;
  }

  public void setPaymentNo(String paymentNo) {
    this.paymentNo = paymentNo;
  }

  public RealnameAuthCommonInsurRequestDTOParam queryNo(String queryNo) {
    this.queryNo = queryNo;
    return this;
  }

   /**
   * Get queryNo
   * @return queryNo
  **/

  public String getQueryNo() {
    return queryNo;
  }

  public void setQueryNo(String queryNo) {
    this.queryNo = queryNo;
  }

  public RealnameAuthCommonInsurRequestDTOParam taskNumbers(String taskNumbers) {
    this.taskNumbers = taskNumbers;
    return this;
  }

   /**
   * Get taskNumbers
   * @return taskNumbers
  **/

  public String getTaskNumbers() {
    return taskNumbers;
  }

  public void setTaskNumbers(String taskNumbers) {
    this.taskNumbers = taskNumbers;
  }

  public RealnameAuthCommonInsurRequestDTOParam totalAmount(String totalAmount) {
    this.totalAmount = totalAmount;
    return this;
  }

   /**
   * Get totalAmount
   * @return totalAmount
  **/

  public String getTotalAmount() {
    return totalAmount;
  }

  public void setTotalAmount(String totalAmount) {
    this.totalAmount = totalAmount;
  }

  public RealnameAuthCommonInsurRequestDTOParam tradeNo(String tradeNo) {
    this.tradeNo = tradeNo;
    return this;
  }

   /**
   * Get tradeNo
   * @return tradeNo
  **/

  public String getTradeNo() {
    return tradeNo;
  }

  public void setTradeNo(String tradeNo) {
    this.tradeNo = tradeNo;
  }

  public RealnameAuthCommonInsurRequestDTOParam date(String date) {
    this.date = date;
    return this;
  }

   /**
   * Get date
   * @return date
  **/

  public String getDate() {
    return date;
  }

  public void setDate(String date) {
    this.date = date;
  }

  public RealnameAuthCommonInsurRequestDTOParam validateSequenceNo(String validateSequenceNo) {
    this.validateSequenceNo = validateSequenceNo;
    return this;
  }

   /**
   * Get validateSequenceNo
   * @return validateSequenceNo
  **/

  public String getValidateSequenceNo() {
    return validateSequenceNo;
  }

  public void setValidateSequenceNo(String validateSequenceNo) {
    this.validateSequenceNo = validateSequenceNo;
  }

  public RealnameAuthCommonInsurRequestDTOParam tradingBackDataDTOS(List<RealnameAuthTradingBackDataDTOParam> tradingBackDataDTOS) {
    this.tradingBackDataDTOS = tradingBackDataDTOS;
    return this;
  }

  public RealnameAuthCommonInsurRequestDTOParam addTradingBackDataDTOSItem(RealnameAuthTradingBackDataDTOParam tradingBackDataDTOSItem) {
    if (this.tradingBackDataDTOS == null) {
      this.tradingBackDataDTOS = new ArrayList<>();
    }
    this.tradingBackDataDTOS.add(tradingBackDataDTOSItem);
    return this;
  }

   /**
   * Get tradingBackDataDTOS
   * @return tradingBackDataDTOS
  **/

  public List<RealnameAuthTradingBackDataDTOParam> getTradingBackDataDTOS() {
    return tradingBackDataDTOS;
  }

  public void setTradingBackDataDTOS(List<RealnameAuthTradingBackDataDTOParam> tradingBackDataDTOS) {
    this.tradingBackDataDTOS = tradingBackDataDTOS;
  }


  @Override
  public boolean equals(java.lang.Object o) {
  if (this == o) {
    return true;
  }
  if (o == null || getClass() != o.getClass()) {
    return false;
  }
    RealnameAuthCommonInsurRequestDTOParam realnameAuthCommonInsurRequestDTOParam = (RealnameAuthCommonInsurRequestDTOParam) o;
    return ObjectUtils.equals(this.appkey, realnameAuthCommonInsurRequestDTOParam.appkey) &&
    ObjectUtils.equals(this.requestNo, realnameAuthCommonInsurRequestDTOParam.requestNo) &&
    ObjectUtils.equals(this.customerNo, realnameAuthCommonInsurRequestDTOParam.customerNo) &&
    ObjectUtils.equals(this.requestType, realnameAuthCommonInsurRequestDTOParam.requestType) &&
    ObjectUtils.equals(this.cardNo, realnameAuthCommonInsurRequestDTOParam.cardNo) &&
    ObjectUtils.equals(this.payerIdCard, realnameAuthCommonInsurRequestDTOParam.payerIdCard) &&
    ObjectUtils.equals(this.payerName, realnameAuthCommonInsurRequestDTOParam.payerName) &&
    ObjectUtils.equals(this.paymentNo, realnameAuthCommonInsurRequestDTOParam.paymentNo) &&
    ObjectUtils.equals(this.queryNo, realnameAuthCommonInsurRequestDTOParam.queryNo) &&
    ObjectUtils.equals(this.taskNumbers, realnameAuthCommonInsurRequestDTOParam.taskNumbers) &&
    ObjectUtils.equals(this.totalAmount, realnameAuthCommonInsurRequestDTOParam.totalAmount) &&
    ObjectUtils.equals(this.tradeNo, realnameAuthCommonInsurRequestDTOParam.tradeNo) &&
    ObjectUtils.equals(this.date, realnameAuthCommonInsurRequestDTOParam.date) &&
    ObjectUtils.equals(this.validateSequenceNo, realnameAuthCommonInsurRequestDTOParam.validateSequenceNo) &&
    ObjectUtils.equals(this.tradingBackDataDTOS, realnameAuthCommonInsurRequestDTOParam.tradingBackDataDTOS);
  }

  @Override
  public int hashCode() {
    return ObjectUtils.hashCodeMulti(appkey, requestNo, customerNo, requestType, cardNo, payerIdCard, payerName, paymentNo, queryNo, taskNumbers, totalAmount, tradeNo, date, validateSequenceNo, tradingBackDataDTOS);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class RealnameAuthCommonInsurRequestDTOParam {\n");
    
    sb.append("    appkey: ").append(toIndentedString(appkey)).append("\n");
    sb.append("    requestNo: ").append(toIndentedString(requestNo)).append("\n");
    sb.append("    customerNo: ").append(toIndentedString(customerNo)).append("\n");
    sb.append("    requestType: ").append(toIndentedString(requestType)).append("\n");
    sb.append("    cardNo: ").append(toIndentedString(cardNo)).append("\n");
    sb.append("    payerIdCard: ").append(toIndentedString(payerIdCard)).append("\n");
    sb.append("    payerName: ").append(toIndentedString(payerName)).append("\n");
    sb.append("    paymentNo: ").append(toIndentedString(paymentNo)).append("\n");
    sb.append("    queryNo: ").append(toIndentedString(queryNo)).append("\n");
    sb.append("    taskNumbers: ").append(toIndentedString(taskNumbers)).append("\n");
    sb.append("    totalAmount: ").append(toIndentedString(totalAmount)).append("\n");
    sb.append("    tradeNo: ").append(toIndentedString(tradeNo)).append("\n");
    sb.append("    date: ").append(toIndentedString(date)).append("\n");
    sb.append("    validateSequenceNo: ").append(toIndentedString(validateSequenceNo)).append("\n");
    sb.append("    tradingBackDataDTOS: ").append(toIndentedString(tradingBackDataDTOS)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

  private final Map<String, Object> _extParamMap = new HashMap<>();

  @JsonAnySetter
  public Map<String, Object> addParam(String name, Object value) {
    if (null != name && null != value) {
      _extParamMap.put(name, value);
    }
    return _extParamMap;
  }

  @JsonAnyGetter
  public Map<String, Object> get_extParamMap() {
    return _extParamMap;
  }

  @JsonIgnore
  public <T> T get_extParam(String name) {
    return (T) _extParamMap.get(name);
  }

}

